/**
 * 
 */
package com.github.sworm.android.killer.objects;

import android.graphics.drawable.Drawable;
import android.view.View;

/**
 * @author nekun
 * 
 */
public class Enemy extends AbstractSteppedObject {

	/**
	 * @param view
	 * @param drawable
	 */
	public Enemy(View view, Drawable drawable) {
		super(view, drawable);
	}

	public void setRandomVelocity() {
		setvX(Math.random() * 40 - 20);
		setvY(Math.random() * 40 - 20);
	}

	@Override
	public void doStep() {
		setRandomVelocity();
	}
}
